home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’96 / Sessions ’96 / ODF- Easy OpenDoc / MacHack(2) / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-06-18  |  1.5 KB  |  56 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef PART_H
  11. #define PART_H
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWPART_H
  16. #include "FWPart.h"
  17. #endif
  18.  
  19. //========================================================================================
  20. //    CLASS CMacHackPart
  21. //========================================================================================
  22.  
  23. class CMacHackPart : public FW_CPart
  24. {
  25. public:
  26.     FW_DECLARE_AUTO(CMacHackPart)
  27.  
  28. //----------------------------------------------------------------------------------------
  29. //    Initialization/Destruction
  30. //
  31. public:
  32.     CMacHackPart(ODPart* odPart);
  33.     virtual ~CMacHackPart();
  34.  
  35.     virtual void Initialize(Environment* ev);
  36.     
  37. //----------------------------------------------------------------------------------------
  38. //    Inherited API
  39. //
  40. public:
  41.     virtual FW_CContent*     NewPartContent(Environment* ev);
  42.     virtual FW_CFrame*         NewFrame(Environment* ev,
  43.                                     ODFrame* odFrame, 
  44.                                     FW_CPresentation* presentation,
  45.                                     FW_Boolean fromStorage);
  46.     virtual FW_Boolean        DoMenu(Environment* ev, const FW_CMenuEvent& theMenuEvent);
  47.     
  48. //----------------------------------------------------------------------------------------
  49. //    Data Member
  50. //
  51. private:
  52.     FW_CPresentation*    fPresentation;
  53. };
  54.  
  55. #endif
  56.